#include<bits/stdc++.h>
#define ll long long
#define ull unsigned long long
using namespace std;

const ll N = 1e6 + 10, INF = 0x3f3f3f3f;

ll n;
vector<ll> a(2, 1);

void solve()
{
    while (a.back() < 1e15) {
        ll pre1 = a[a.size() - 1], pre2 = a[a.size() - 2];
        a.push_back(pre1 + pre2);
    }
    while (cin >> n) {
        ll flag = 1;
        for (ll i = 0;i <= a.size() && flag == 1;i++)
            for (ll j = i;j <= a.size() && flag == 1;j++) {
                ll sum = 0;
                for (ll k = i;k <= j;k++) sum += a[k];
                if (sum == n) {
                    cout << "YES\n";flag = 0;
                    if (n == 9) cout << i << ' ' << j << '\n';
                }
            }
        if (flag) cout << "NO\n";
    }
}

signed main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);cout.tie(0);
#define ONLINE_JUDGE
#ifndef ONLINE_JUDGE
    std::istringstream in(R"(1
2
5
9
10
)");
    std::cin.rdbuf(in.rdbuf());
#endif
    ll T = 1;
    //cin>>T;
    for (ll i = 1;i <= T;i++) {
        solve();
    }
}